package beautiful.butterfly.drds.data_exchange.core.transport.transformer;


import common.element.Record;
import transformer.ComplexTransformer;
import transformer.Transformer;

import java.util.Map;

public class ComplexTransformerProxy extends ComplexTransformer
{
    private Transformer transformer;

    public ComplexTransformerProxy(Transformer transformer)
    {
        setTransformerName(transformer.getTransformerName());
        this.transformer = transformer;
    }


    public Record evaluate(Record record, Map<String, Object> map, Object... paras)
    {
        return this.transformer.evaluate(record, paras);
    }

    public Transformer getTransformer()
    {
        return transformer;
    }
}
